import requests

# 1、基本请求get和post方法

r = requests.get('http://httpbin.org/post',timeout=3)
r = requests.post('http://httpbin.org/post',data={'key':'123123123'},timeout=3)
print(r)